From aa552229c96b97d1e8366cbe727ae9de45cc4db0 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 15 Feb 2019 10:20:48 -0500 Subject: [PATCH] singleselection: Make tests build without warnings --- testsuite/gtk/singleselection.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/testsuite/gtk/singleselection.c b/testsuite/gtk/singleselection.c index efe4a91ece..f13fbacebf 100644 --- a/testsuite/gtk/singleselection.c +++ b/testsuite/gtk/singleselection.c @@ -298,6 +298,7 @@ test_create (void) g_object_unref (selection); } +#if GLIB_CHECK_VERSION (2, 58, 0) /* g_list_store_splice() is broken before 2.58 */ static void test_changes (void) { @@ -332,7 +333,9 @@ test_changes (void) g_object_unref (selection); g_object_unref (store); } +#endif +#if GLIB_CHECK_VERSION (2, 59, 0) /* g_list_store_get_item() has overflow issues before */ static void test_selection (void) { @@ -383,7 +386,9 @@ test_selection (void) g_object_unref (store); g_object_unref (selection); } +#endif +#if GLIB_CHECK_VERSION (2, 59, 0) /* g_list_store_get_item() has overflow issues before */ static void test_autoselect (void) { @@ -418,7 +423,9 @@ test_autoselect (void) g_object_unref (store); g_object_unref (selection); } +#endif +#if GLIB_CHECK_VERSION (2, 59, 0) /* g_list_store_get_item() has overflow issues before */ static void test_can_unselect (void) { @@ -449,7 +456,9 @@ test_can_unselect (void) g_object_unref (store); g_object_unref (selection); } +#endif +#if GLIB_CHECK_VERSION (2, 59, 0) /* g_list_store_get_item() has overflow issues before */ static int sort_inverse (gconstpointer a, gconstpointer b, gpointer data) { @@ -484,6 +493,7 @@ test_persistence (void) g_object_unref (store); g_object_unref (selection); } +#endif static void check_query_range (GtkSelectionModel *selection) -- 2.30.2